
<div id="comment_detail">
    <div id="comment_top" <?php if ($this->_var['display'] == 1): ?> style="display:none" <?php else: ?> style="display:block"<?php endif; ?>>
      <div class="precent">
        <span id="tips">好评率</span>
        <div id="value"><span><?php echo $this->_var['rate']['good_pre']; ?>%</span></div>
      </div>
      <div class="status">
        <span>好评(<?php echo $this->_var['rate']['good']; ?>)  <li style="width:100%" class="sta_empty"></li> <li style="width:<?php echo $this->_var['rate']['good_pre']; ?>%" class="sta_full"></li> </span>
        <span>中评(<?php echo $this->_var['rate']['middle']; ?>)  <li style="width:100%" class="sta_empty"></li> <li style="width:<?php echo $this->_var['rate']['middle_pre']; ?>%" class="sta_full"></li> </span>
        <span>差评(<?php echo $this->_var['rate']['bad']; ?>)  <li style="width:100%" class="sta_empty"></li> <li style="width:<?php echo $this->_var['rate']['bad_pre']; ?>%" class="sta_full"></li> </span>
      </div>
      <div class="key">
        <div class="title">买家印象：</div>
        <li><font>性价比很高</font><span></span></li>
        <li><font>整体感觉不错</font><span></span></li>
        <li><font>包装不错</font><span></span></li>
        <li><font>很好很实用</font><span></span></li>
        <li><font>适合设计创作</font><span></span></li>
        <li><font>适合写生</font><span></span></li>
        <li><font>用在美术考试很不错</font><span></span></li>     
      </div>
    </div>

  
  <div id="comment_detail">
    <table width="100%" cellpadding="0" cellspacing="0">
      <tr class="title">
        <th width="10"></th>
        <th width="18%" align="center" style="font-size:15px; padding-top:10px; font-weight: 400; color: #7c7c7c; line-height: 27px; font-weight: bold;">用户信息</th>
        <th width="76%"></th>
      </tr>

     <?php $_from = $this->_var['comments']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }; $this->push_vars('', 'Comment');if (count($_from)):
    foreach ($_from AS $this->_var['Comment']):
?>

      <tr >
        <td></td>
        <td align="center">
          <div>
            
            <?php if ($this->_var['Comment']['head']): ?>
            <img src="<?php echo $this->_var['Comment']['head']; ?>" alt="" width="64px;" height="64px;">
            <?php else: ?>
            <img src="<?php if ($this->_var['Comment']['sex'] == 1): ?>img/sex0.jpg<?php else: ?>img/sex1.jpg<?php endif; ?>" alt="" width="64px;" height="64px;">
            <?php endif; ?>
          </div>
          <div id="name">
            
            <?php echo $this->_var['Comment']['username']; ?>
          </div>
        </td>
        <td align="left"  class="list">
        <div class="bg">
        
          <?php if ($this->_var['Comment']['up_time'] == 0): ?>
          <div class="comment first">心得：<?php echo $this->_var['Comment']['content']; ?></div>
          <?php else: ?>
          <div class="comment first">
            <div class="left">
              初次心得：<?php echo $this->_var['Comment']['content']; ?><br/>
              追加心得：<?php echo $this->_var['Comment']['content_more']; ?>
            </div>
          </div>
          <?php endif; ?>
        
          <div class="time_score">
            <span>时间：<?php echo $this->_var['Comment']['add_time']; ?> </span>
            <span class="rank_box">
              评分：<span class="rank_box1">
              <?php echo $this->_var['Comment']['rank_list']; ?>
              </span>
              </span>
          </div>
        
          <div class="good_bad">
            <div class="good">
              <a <?php if ($_SESSION['user_id']): ?> href="javascript:comment_good_bad(<?php echo $this->_var['Comment']['id']; ?>,1)"<?php else: ?> onclick="$('#is_login,.is_login_bg').show();"<?php endif; ?>>说得好</a>
              <div id="good_<?php echo $this->_var['Comment']['id']; ?>" class="value"><?php echo $this->_var['Comment']['good']; ?></div></div>
            <div class="bad"> 
              <a <?php if ($_SESSION['user_id']): ?> href="javascript:comment_good_bad(<?php echo $this->_var['Comment']['id']; ?>,0)"<?php else: ?> onclick="$('#is_login,.is_login_bg').show();"<?php endif; ?>>乱说</a>
              <div id="bad_<?php echo $this->_var['Comment']['id']; ?>" class="value"><?php echo $this->_var['Comment']['bad']; ?></div></div>
          </div>
        </div>
        </td>
      </tr>
    <?php endforeach; endif; unset($_from); ?><?php $this->pop_vars();; ?>
    </table>

  </div>
  <form name="selectPageForm" action="<?php echo $_SERVER['PHP_SELF']; ?>" method="get">
           <div id="pager" class="pagebar">
            <div class="pager">
            <a class="count"><span>1 of <?php echo $this->_var['pager']['page_count']; ?></span></a>
            <a href="<?php echo $this->_var['pager']['page_first']; ?>"><span> 首 </span></a>
            <?php if ($this->_var['pager']['page_prev']): ?><a class="prev" href="<?php echo $this->_var['pager']['page_prev']; ?>"><span> << </span></a><?php endif; ?>
            <?php $_from = $this->_var['pager']['number']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }; $this->push_vars('key', 'item_0_75388900_1443518675');if (count($_from)):
    foreach ($_from AS $this->_var['key'] => $this->_var['item_0_75388900_1443518675']):
?>
                  <?php if ($this->_var['pager']['page'] == $this->_var['key']): ?>
                  <a class="page_now"><span> <?php echo $this->_var['key']; ?> </span></a>
                  <?php else: ?>
                  <a href="<?php echo $this->_var['item_0_75388900_1443518675']; ?>"><span> <?php echo $this->_var['key']; ?> </span></a>
                  <?php endif; ?>
              <?php endforeach; endif; unset($_from); ?><?php $this->pop_vars();; ?>

            <?php if ($this->_var['pager']['page_next']): ?><a class="next" href="<?php echo $this->_var['pager']['page_next']; ?>"><span> >> </span></a><?php endif; ?>
            <a href="<?php echo $this->_var['pager']['page_last']; ?>"><span> 尾 </span></a>
            <?php if ($this->_var['pager']['page_kbd']): ?>
              <?php $_from = $this->_var['pager']['search']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }; $this->push_vars('key', 'item_0_75424900_1443518675');if (count($_from)):
    foreach ($_from AS $this->_var['key'] => $this->_var['item_0_75424900_1443518675']):
?>
              <input type="hidden" name="<?php echo $this->_var['key']; ?>" value="<?php echo $this->_var['item_0_75424900_1443518675']; ?>" />
              <?php endforeach; endif; unset($_from); ?><?php $this->pop_vars();; ?>
              <kbd style="float:left; margin-left:8px; position:relative; bottom:3px;"><input type="text" name="page" onkeydown="if(event.keyCode==13)selectPage(this)" size="3" class="input_border" /></kbd>
              <?php endif; ?>
            </div>
          </div>
     </form>
          <script type="Text/Javascript" language="JavaScript">
          <!--
          
          function selectPage(sel)
          {
            sel.form.submit();
          }
          
          //-->
          </script>
    
</div>